package com.dxtan90.gray.impl;

import com.dxtan90.gray.AbstractGrayMethod;

public class SmallestMethod extends AbstractGrayMethod {

    public SmallestMethod() {
        super("DEAL_SMALLEST");
    }

    @Override
    public int getGrey(int red, int green, int blue) {
        return Math.min(red,Math.min(green,blue));
    }
}
